package com.study.common.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 使用类型转换器
 */
public class EasyExcel_02 extends EasyExcel_01 implements Serializable {
    @ExcelProperty(value = "性别",converter = SexConverter.class)
    private Integer sex;

    public EasyExcel_02(Integer id, String name, Date birthDay, Integer sex) {
        super(id, name, birthDay);
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "EasyExcel_02{" +
                "sex=" + sex +
                "} " + super.toString();
    }

    public EasyExcel_02() {
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
}
